package pl.com.qapps.datastore.berkeley;

import com.google.appengine.api.datastore.Transaction;

/**
 * 
 * @author Jakub Dykowski
 *
 * @param <V>
 */
abstract class BaseRequest<V> {

	private Transaction txn;

	abstract V run(final Store store, com.sleepycat.je.Transaction txn);

	abstract void init(final Store store);

	final void setTxn(Transaction txn) {
		this.txn = txn;
	}

	final Transaction getTxn() {
		return this.txn;
	}
}
